Get Moderation Status for a Specific Contribution
This endpoint retrieves moderation status for a specific contribution
info
This operation requires moderation role.
HTTP Request
GET /api/v2/moderation/contribution/{id}/status/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | A unique integer value identifying this Contribution |
contribution_type | body | string | true | Valid values are: post, discussion, status, comment |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/moderation/contribution/{id}/status/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/moderation/contribution/{id}/status/ \
-H 'Accept: application/json'
-H 'Authorization: Bearer {access_token}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Inline |
Status values
Parameter | Value |
---|---|
status | open |
status | ignored |
status | hidden |
status | deleted |
Flag type values
Parameter | Value | Description |
---|---|---|
flag_type | 0 | spam |
flag_type | 1 | aggressive |
flag_type | 2 | vulgar |
flag_type | 3 | poor |
flag_type | 4 | offtopic |
Example responses
- 200
{
"status": "string",
"flag_type": "integer",
"flag_type_description": "string"
}